#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>

#include "rf.h"

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
     void on_actionPreferences_triggered();
     void setIcon(int index);
     void iconActivated(QSystemTrayIcon::ActivationReason reason);
     void showMessage( QString txt );
     void messageClicked();

private:
    QIcon  *normalIcon;
    QIcon  *warningIcon;

    Ui::MainWindow *ui;
    void createIconGroupBox();
    void createMessageGroupBox();
    void createActions();
    void createTrayIcon();

    QAction *minimizeAction;
    QAction *maximizeAction;
    QAction *restoreAction;
    QAction *quitAction;

    QSystemTrayIcon *trayIcon;
    QMenu *trayIconMenu;

    RF      *rf;
};

#endif // MAINWINDOW_H
